package com.blog.study.study8;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

/**
 * 〈Redis的连接池〉<br>
 *
 * @author 未绪
 * @time 2017/12/12 21:54
 */
public class JedisPoolDemo {

    public static final String HOST="192.168.88.129";
    public static final int PORT=6380;

    public static void main(String[] args) {

        JedisPool pool=JedisPoolUtils.getJedisPoolInstance(HOST,PORT);

        Jedis jedis=pool.getResource();

        System.out.println(jedis.keys("*"));

        JedisPoolUtils.release(pool,jedis);

    }

}
